QT += qml quick sql script serialbus serialport charts
QT += gui-private


greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17
CONFIG += qtquickcompiler

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    A39C/qa39c.cpp \
    main.cpp \
    mydatabase.cpp \
    mymodbus.cpp \
    myprinter/myprinter.cpp \
    mytablemodel.cpp \
    mytables.cpp \
    myutility.cpp \
    weightdata.cpp\
    libmodbus-3.1.6/src/modbus-data.c \
    libmodbus-3.1.6/src/modbus-rtu.c \
    libmodbus-3.1.6/src/modbus-tcp.c \
    libmodbus-3.1.6/src/modbus.c

HEADERS += \
    A39C/qa39c.h \
    mydatabase.h \
    mymodbus.h \
    myprinter/myprinter.h \
    mytablemodel.h \
    mytables.h \
    myutility.h \
    weightdata.h\
    libmodbus-3.1.6/src/modbus-private.h \
    libmodbus-3.1.6/src/modbus-rtu-private.h \
    libmodbus-3.1.6/src/modbus-rtu.h \
    libmodbus-3.1.6/src/modbus-tcp-private.h \
    libmodbus-3.1.6/src/modbus-tcp.h \
    libmodbus-3.1.6/src/modbus-version.h \
    libmodbus-3.1.6/src/modbus-version.h.in \
    libmodbus-3.1.6/src/modbus.h

FORMS +=

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

#添加qBreakpad库
#LIBS += -L$$PWD/qBreakpad/v3s/ -lqBreakpad
#INCLUDEPATH += $$PWD/qBreakpad/v3s/
#DEPENDPATH += $$PWD/qBreakpad/v3s/
#LIBS += -L$$PWD/qBreakpad/gcc/ -lqBreakpad
#INCLUDEPATH += $$PWD/qBreakpad/gcc/
#DEPENDPATH += $$PWD/qBreakpad/gcc/

RESOURCES += \
    qrc.qrc

TRANSLATIONS += \
    zh_CN.ts \
    en_US.ts \
    indonesia.ts

DISTFILES += \
    __ver.txt
